﻿using UnityEngine;
using UnityEngine.UI;
namespace WoogiUI
{
    [RequireComponent(typeof(Image))]
    public class WoogiImage : WoogiCanvasRenderer
    {
        public Image image
        {
            get { return GetComponent<Image>(); }
        }

        public Sprite sprite
        {
            get { return image.sprite; }
            set { image.sprite = value; }
        }

        public Color color
        {
            get { return image.color; }
            set { image.color = value; }
        }

        public Material material
        {
            get { return image.material; }
            set { image.material = value; }
        }

        public Image.Type type 
        {
            get { return image.type; }
            set { image.type = value; }
        }
    }
}
